from datetime import timedelta

BROKER_URL = 'redis://localhost:6379/0'
CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
CELERY_TASK_SERIALIZER = 'msgpack'
#CELERY_RESULT_SERIALIZER = 'json'
CELERY_ACCEPT_CONTENT = ['msgpack']
CELERY_TASK_RESULT_EXPIRES = 60 * 60
#CELERY_IMPORTS = ('robot.tasks', )


CELERYBEAT_SCHEDULE = {
    'add': {
        'task': 'robot.tasks.add',
        'schedule': timedelta(seconds=10),
        'args': (16, 16)
    }
}
